<template>
  <div>
    <div class="growing_next_hade">
      <span @click="goback" class="span"></span>
      <div class="growing_next_back"></div>
      <div class="growing_hade_top">
        <h1>成就点&nbsp;</h1>
        <span>？</span>
        <p>{{ growing_number }}</p>
      </div>
    </div>
    <div class="growing_next_body">
      <div class="a_list growing_long">
        <h1>个人成就</h1>
        <div class="growing_medal">
          <div>
            <img :src="growing_list_medal" alt="" />
            <p>持之以恒</p>
          </div>
          <div>
            <img :src="growing_list_medal" alt="" />
            <p>持之以恒</p>
          </div>
          <div>
            <img :src="growing_list_medal" alt="" />
            <p>持之以恒</p>
          </div>
          <div>
            <img :src="growing_list_medal" alt="" />
            <p>持之以恒</p>
          </div>
          <div>
            <img :src="growing_list_medal" alt="" />
            <p>持之以恒</p>
          </div>
          <div>
            <img :src="growing_list_medal" alt="" />
            <p>持之以恒</p>
          </div>
          <div>
            <img :src="growing_list_medal" alt="" />
            <p>持之以恒</p>
          </div>
        </div>
      </div>
      <div class="a_list growing_time">
        <h1>活动成就</h1>
        <div class="growing_medal growing_medal_null">
          <img :src="growing_list_null" alt="" />
          <h2>暂时还没有成就</h2>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import growing_list_null from "../assets/images/GrowingImages/详情-空.png";
import growing_list_medal from "../assets/images/GrowingImages/详情-徽章.png";
import { useRouter } from "vue-router";
export default {
  // 组件注册

  components: {},
  data() {
    return {
      growing_number: 0,
    };
  },
  setup() {
    // goback
    const router = useRouter();
    const goback = () => {
      router.go(-1);
      // console.log(1);
    };
    return {
      growing_list_medal,
      growing_list_null,
      goback,
    };
  },
};
</script>
<style lang="less" scoped>
.growing_next_hade {
  width: 100%;
  height: 202px;
  background: url("../assets/images/GrowingImages/详情-页头.png");
  padding-left: 15.5px;
  box-sizing: border-box;
  padding-top: 35px;
  position: relative;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  .span {
    position: absolute;
    top: 30px;
    left: 5px;
    width: 20px;
    height: 20px;
    // background-color: black;
    z-index: 1;
  }
  .growing_next_back {
    width: 7px;
    height: 10.5px;
    background: url("../assets/images/GrowingImages/详情-回退.png");
    position: absolute;
    left: 10px;
  }
  .growing_hade_top {
    margin-top: 15px;
    font-size: 18px;
    color: white;
    margin-left: 5px;
    h1 {
      display: inline-block;
      font-size: 18px;
      vertical-align: middle;
      font-weight: bold;
    }
    span {
      font-size: 12px;
      display: inline-block;
      width: 15px;
      height: 15px;
      border-radius: 15px;
      border: 2px solid white;
      text-align: center;
      line-height: 15px;
      vertical-align: middle;
    }
  }
  p {
    font-size: 46px;
    color: white;
  }
}
.growing_list {
  .growing_top {
    padding-left: 10.5px;
    padding-right: 10.5px;
    width: 100%;
    position: relative;
    margin-bottom: 10px;
    box-sizing: border-box;
  }
}
.growing_next_body {
  position: relative;
}
.a_list {
  margin: 0 auto;
  border-radius: 15px;
  min-height: 99px;
  box-shadow: 1px 1px 5px 3px rgba(0, 0, 0, 0.2);
  width: 90%;
  top: -20px;
  background-color: white;
  padding-top: 10px;
  box-sizing: border-box;
  margin-top: -20px;
  margin-bottom: 20px;
  h1 {
    margin-left: 15.5px;
    font-size: 18px;
    color: rgba(61, 61, 61, 0.6);
    padding-bottom: 15px;
  }
  .growing_medal {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    div {
      float: left;
      margin-bottom: 12px;
      margin-right: 15.5px;
      margin-left: 25.5px;
      img {
        display: block;
        margin: 0 auto;
        width: 100%;
      }
      p {
        font-size: 16px;
        opacity: 0.7;
        text-align: center;
      }
    }
  }
}
.growing_time {
  margin-top: 27.5px;
  h2 {
    text-align: center;
    font-size: 16px;
  }
  img {
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    padding-left: 25px;
  }
  .growing_medal_null {
    padding: 0;
    margin: 0;
    display: block;
  }
}
</style>
